package com.example.shardingjdbcdemo1.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.shardingjdbcdemo1.domain.TOrder;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface TOrderMapper extends BaseMapper<TOrder> {
    @Select("SELECT t1.*,t2.`name` FROM t_order t1 LEFT JOIN t_user t2 ON t1.user_id = t2.id;")
    List<Map<String, Object>> queryOrderList();
}

